#include <iostream>
using namespace std;
int main()
{
	int i, j, index = 0;
	char str[4] = "WTL";
	double max, temp, ans = 1.0;
	for(i = 0; i < 3; i++){
		max = 0;
		for(j = 0; j < 3; j++){
			cin >> temp;
			if(temp > max){
				max = temp;
				index = j;
			}
		} 
		ans *= max;
		cout << str[index] << " ";
	}
	printf("%.2f", (ans * 0.65 - 1)*2);
	return 0;
}
